package com.sxt.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @description: 测试
 * @author: Mr.xx
 * @date: 2021/3/18 18:50
 */
@Data
public class User {

    private Integer id;

    @NotEmpty(message = "name不能为空")
    @Length(min = 6, max = 15, message = "name是6~15位字符")
    private String name;

    @NotEmpty(message = "password不能为空")
    @Length(min = 6, max = 15, message = "password是6~15位字符")
    private String password;
}
